package com.py.credit.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.py.credit.dao.DatabaseDao;
import com.py.credit.entity.Database;
import com.py.credit.service.DbService;

@Service
public class DbServiceImpl implements DbService {

	@Autowired
	private DatabaseDao databaseDao;

	@Override
	public List<Database> getDbList(String rootId) {

		return databaseDao.selectList(rootId);
	}

	@Override
	public Database getById(int kId) {

		return databaseDao.selectByPrimaryKey(kId);
	}

}
